import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/remark/list',
    method: 'get',
    params: query
  })
}

export function fetchRecordList(query) {
  return request({
    url: '/remark/newest',
    method: 'get',
    params: query
  })
}

export function fetchRecordCountList(query) {
  return request({
    url: '/remark/counts',
    method: 'get',
    params: query
  })
}

export function getRemarkListByUserId(userId, query) {
  return request({
    url: '/remark/list/' + userId,
    method: 'get',
    params: query
  })
}

export function getChartData(query, type) {
  return request({
    url: '/remark/chart/' + type,
    method: 'get',
    params: query
  })
}
export function getRemarkCountData(query, type) {
  return request({
    url: '/remark/remark/' + type,
    method: 'get',
    params: query
  })
}
